/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.ooprinciples.polymorphism.conf;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.ooprinciples.polymorphism.Employee;
import za.ac.cput.ooprinciples.polymorphism.Impl.FullTimeEmployee;
import za.ac.cput.ooprinciples.polymorphism.Impl.PartTimeEmployee;

/**
 *
 * @author Abduraghmaan
 */
@Configurable
public class AppConfig2 {
    
    @Bean(name = "oldEmp")
    public Employee OldEmp()
    {
        return new FullTimeEmployee();
    }
    
    @Bean(name = "fEmp")
    public Employee fEmp()
    {
        return new FullTimeEmployee();
    }
    
    @Bean(name = "pEmp")
    public Employee pEmp()
    {
        return new PartTimeEmployee();
    }
    
}
